package com.fanjia.security01demo.service.impl;

import com.fanjia.security01demo.dao.UserDao;
import com.fanjia.security01demo.entity.User;
import com.fanjia.security01demo.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (User)表服务实现类
 *
 * @author fanjia
 * @since 2021-03-26 22:47:45
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;


    @Override
    public void register(String username, String password) {
        userDao.register(username,password);
    }

    @Override
    public User query(String username) {
        return userDao.query(username);
    }
}